package com.xnyzc.lhy.mis.controller.cmsapi.punishment;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.punishment.OaDUserPunishmentImportrecord;
import com.xnyzc.lhy.mis.service.punishment.IOaDUserPunishmentImportrecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 司机处罚导入记录 前端控制器
 * </p>
 *
 * @author cuichaoqun
 * @since 2019-10-27
 */
@RestController
@Api(value="司机处罚导入记录",tags={"司机处罚导入记录"})
@RequestMapping("/cmsapi/oaDUserPunishmentImportrecord")
public class OaDUserPunishmentImportrecordController {
    @Autowired
    IOaDUserPunishmentImportrecordService iOaDUserPunishmentImportrecordService;

    @ApiOperation(value = "添加司机处罚导入记录", notes = "添加司机处罚导入记录")
    @PostMapping(value = "/addOaDUserPunishmentImportrecord")
    public Rv addOaDUserPunishmentImportrecord(@RequestBody  OaDUserPunishmentImportrecord oaDUserPunishmentImportrecord){
        return iOaDUserPunishmentImportrecordService.addOaDUserPunishmentImportrecord(oaDUserPunishmentImportrecord);
    }

    @ApiOperation(value = "查询司机处罚导入记录", notes = "查询司机处罚导入记录")
    @GetMapping(value = "/queryOaDUserPunishmentImportrecord")
    public Rv queryOaDUserPunishmentImportrecord(Integer pageSize,Integer current){
        return iOaDUserPunishmentImportrecordService.queryOaDUserPunishmentImportrecord(pageSize,current);
    }
}
